package com.cos.lession51.services.impl;

import com.cos.lession51.dao.EmpDao;
import com.cos.lession51.services.EmpServices;

/**
 * @author: COS
 * @time: 2022/3/4 8:58
 * @description:
 */
public class EmpServicesImpl implements EmpServices {
    //接口属性,自动注入这个接口的实现类
    private EmpDao ed;

    @Override
    public void show() {
        System.out.println("这个是EmpServices");
        ed.show();
    }

    public EmpDao getEd() {
        return ed;
    }

    public void setEd(EmpDao ed) {
        this.ed = ed;
    }
}
